﻿using com.guojin.core.io.message;
using com.guojin.core.io;
using System;

namespace com.guojin.mj.net.message.login
{
    public class UpgradeClub : Message
    {
        public static int TYPE = 7;
        public static int ID = 95;
        /****
     * 1代表中级俱乐部  
     * 2高级俱乐部
     */
        private int level;
        private int clubid;
        public static UpgradeClub Create(int _level,int _club) {
            UpgradeClub uc = new UpgradeClub();
            uc.level = _level;
            uc.clubid = _club;
            return uc;
        }
        public int Level
        {
            get
            {
                return level;
            }
            set
            {
                level = value;
            }
        }

        public int Clubid
        {
            get
            {
                return clubid;
            }

            set
            {
                clubid = value;
            }
        }

        public void decode(Input _in)
        {
            
        }

        public void encode(Output _out)
        {
            _out.writeInt(level);
            _out.writeInt(clubid);
        }
        public int getMessageId()
        {
            return ID;
        }
        public int getMessageType()
        {
            return TYPE;
        }
        public string toString()
        {
            return "level" + level + "clubid" + clubid;
        }
    }
}